<template>
    <el-table :data="list" border>
        <el-table-column label="Id" prop="id"></el-table-column>
        <el-table-column label="创建时间" prop="landlord_id"></el-table-column>
        <el-table-column label="截止时间" prop="user_id"></el-table-column>
        <el-table-column label="地址" prop="type"></el-table-column>
        <el-table-column label="房主" prop="person_num"></el-table-column>
        <el-table-column label="租客"  prop="location"></el-table-column>
        <el-table-column label="备注" prop="price"></el-table-column>
        <el-table-column label="操作" width="250" >
            <template slot-scope="scope">

                <el-button type="primary" @click="deleteHouse(scope.$index,scope.row)">编辑</el-button>
                <el-button type="danger" @click="deleteHouse(scope.$index,scope.row)">删除</el-button>
            </template>
        </el-table-column>
    </el-table>
</template>

<script>
import {fetchAllMeets} from "../../api/meetLogs";

export default {
    name: "meetManagement",
    data(){
        return{
            list:[],
        }
    },
    methods:{
        getAllMeets(){
            fetchAllMeets().then(res=>{
                this.list=res.data.list;
            })
        }
    },
    created() {
        this.getAllMeets();
    }
}
</script>

<style scoped>

</style>